package com.jsb.laundry.model.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@ApiModel(description = "订单列表返回参数")
public class OrderListVo {
    @ApiModelProperty("订单id")
    private String orderId;
    @ApiModelProperty("订单方向 1 取；2 送")
    private String orderDirection;
    @ApiModelProperty("金额")
    private String money;
    @ApiModelProperty("用户信息")
    private UserInfo userInfo;
    @ApiModelProperty("商铺信息")
    private ShopInfo shopInfo;

    @Data
     static class ShopInfo {
        @ApiModelProperty("商铺id")
        private String shopsId;
        @ApiModelProperty("商铺id")
        private String shopsName;
        @ApiModelProperty("商铺地址")
        private String shopsAddress;
    }

    @Data
    public static class UserInfo {
        @ApiModelProperty("用户id")
        private String userId;
        @ApiModelProperty("用户姓名")
        private String userName;
        @ApiModelProperty("用户联系方式")
        private String userPhone;
        @ApiModelProperty("用户预约时间")
        private String appointmentTimeStr;
        @ApiModelProperty("用户地址")
        private String userAddress;
        @ApiModelProperty("用户经纬度")
        private String userXY;
    }
}
